﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WF_ExportTool.Configuration.Auto
{
    public class CP_AutoNum:BaseEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int AutoId { get; set; }
        /// <summary>
        /// 编号Code:
        /// </summary>
        public string AutoCode { get; set; }
        /// <summary>
        /// 编号名称
        /// </summary>
        public string AutoName { get; set; }
        /// <summary>
        /// 编号模板,流水号使用关键字{@AutoNum@}:
        /// </summary>
        public string AutoTemplate { get; set; }
        /// <summary>
        /// 流水位长度:
        /// </summary>
        public int AutoNumLen { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int SysId { get; set; }
        /// <summary>
        /// 所属业务功能:
        /// </summary>
        public string FuncTitle { get; set; }
        /// <summary>
        /// 流水号是否每年从1开始编号:
        /// </summary>
        public Boolean FormAutoYearSplit { get; set; }
        /// <summary>
        /// 流水号对应表单的数据库实例名:
        /// </summary>
        public string FormDbIns { get; set; }
        /// <summary>
        /// 表单对应的表名:
        /// </summary>
        public string FormTableName { get; set; }
        /// <summary>
        /// 表单对应表的主键:
        /// </summary>
        public string FormPKField { get; set; }
        /// <summary>
        /// 表单存储流水号的字段名:
        /// </summary>
        public string FormAumField { get; set; }
        /// <summary>
        /// 表单存储年份的字段名:
        /// </summary>
        public string FormYearField { get; set; }
        /// <summary>
        /// 表单查找最大流水号是其他过滤条件，即sql语句里where后面的过滤条件:
        /// </summary>
        public string FormDataSearch { get; set; }
        /// <summary>
        /// 最后一次编码值
        /// </summary>
        public string CurData { get; set; }
        /// <summary>
        /// 今天最后一次更新次数
        /// </summary>
        public long CurIndex { get; set; }
    }
}
